Developer Documentation

QuickTime 4 API Documentation

QuickTime for Java

| Previous | Chapter Top | Chapter Contents | Next |

The QTDrawable Interface

The QTDrawable interface encapsulates the common operations that can be applied to a QuickTime drawing object. It also presents an interface that expresses the required methods that the QTCanvas needs to call upon its drawing client.

Objects that implement the QTDrawable interface draw into the QDGraphics object presented to the client by its QTCanvas . As a consequence, this is not an appropriate interface for objects that are not QuickTime-based drawing objects. QTExceptions can be thrown by any of the methods in this interface and would indicate that either the graphics environment has changed in some unexpected way or that the media object itself is in some unexpected state.

Figure 3 represents the QTDrawable interfaces and the classes in QuickTime for Java that implement this interface.

Working With the QTDrawable Interface

QTDrawable Methods


© 1999 Apple Computer, Inc.

| Previous | Chapter Top | Chapter Contents | Next |